/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package domain;

/**
 *
 * @author Carlos
 */
public class ModelRule {

	private String _alpha;
	private String _beta;
	private Integer _probability;

//	public ModelRule(String alpha, String beta, Integer probability) {
//		_alpha = alpha;
//		_beta = beta;
//		_probability = probability;
//	}

	public ModelRule(String alpha, String beta) {
		_alpha = alpha;
		_beta = beta;
		_probability = 1;
	}


	public String getAlpha() {
		return _alpha;
	}
	public String getBeta() {
		return _beta;
	}
	public Integer getProbability() {
		return _probability;
	}

    public void incrProbability() {
        ++_probability;
    }

	@Override
	public java.lang.String toString() {
		return "Rule, " +  _alpha + " --> " + _beta + " (" + _probability + ")";
	}
}
